public class _1231{
    public static void main(String[] args) {
        String a1 = "12a245";
        int c1=1;
        System.out.println(a1.substring(2,6));
        String a2 = "00a3";
        Integer end = Integer.parseInt(a1.substring(3,6));
        System.out.println(end);
    }
    
    
}